package com.daxidi.cn.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.daxidi.cn.entity.Clerk;
import com.daxidi.cn.entity.Manager;
import com.daxidi.cn.vo.ClerkVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商家店员信息表 服务类
 * </p>
 *
 * @author wsh
 * @since 2020-11-09
 */
public interface IClerkService extends IService<Clerk> {
    // 增
    public void addClerk(Clerk clerk);

    // 删
    public void deleteClerkById(Integer id);

    // 改
    public void updateClerkById(Clerk clerk);

    // 查
    public Map selectClerksPage(Integer pageNum, Integer pageSize, Integer shopId, String name, String mobile, Integer enable);

    public Clerk selectClerkById(Long id);

    public Clerk login(String mobile, String password);

    // 查询商店下属所有员工信息
    public List<ClerkVo> showClerkByShopId(Long shopId, Integer pageNum, Integer pageSize);
}
